package com.heima.es.pojo;

import com.heima.es.utils.ElasticUtils;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;

@Data
@AllArgsConstructor
public class GoodInfo {
    @ElasticUtils.EsId
    private Long id; // 商品ID
    private String name;
    private Integer num;
    private Date createTime;
    private Integer categoryId;
    private String categoryName;
    private String brandName;

    private String title; // 商品名称
    private Double price; // 商品价格
    private String image; // 商品图片

    public GoodInfo(String title, Double price, String image) {
        this.title = title;
        this.price = price;
        this.image = image;
    }
}
